package cn.jia.hrm.mapper;

import cn.jia.hrm.domain.Tenant;
import cn.jia.hrm.domain.TenantType;
import cn.jia.hrm.query.TenantQuery;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jia
 * @since 2021-09-11
 */
public interface TenantMapper extends BaseMapper<Tenant> {


    List<Tenant> loadpagelist(TenantQuery query, Page<TenantType> page);

    void addTenanMeal(@Param("mealId") Long mealId, @Param("tenantId") Long tenantId);
}
